package android_design_mode.chapter19_composite.folder;

public class ClientFolder {

    public static void main(String[] args) {
        System.out.println("Folder");


        Dir diskC = new Folder("C");

        diskC.addDir(new File("ImbaMallLog.txt"));

        Dir dirWin = new Folder("Windows");

        dirWin.addDir(new File("explorer.exe"));
        diskC.addDir(dirWin);

        Dir dirPer = new Folder("PerfLogs");

        dirPer.addDir(new File("null.txt"));

        diskC.addDir(dirPer);

        Dir dirPro = new Folder("Program File");

        dirPro.addDir(new File("tfp.txt"));
        diskC.addDir(dirPro);

        diskC.print();

    }

}
